import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { knowledge, resource, system } from '@/api/apiModulesType';

// 查询团队分类管理
export function apiteamType(params?) {
  return request({
    url: `${knowledge}/api/teamType`,
    method: 'get',
    params
  });
}

// 新增团队分类管理
export function apiAddteamType(data) {
  return request({
    url: `${knowledge}/api/teamType`,
    method: 'post',
    data
  });
}
// 修改团队分类管理
export function apiEditteamType(data) {
  return request({
    url: `${knowledge}/api/teamType`,
    method: 'put',
    data
  });
}
// 删除团队分类管理
export function apiDeleteteamType(data) {
  return request({
    url: `${knowledge}/api/teamType`,
    method: 'DELETE',
    data
  });
}

// 新增团队分类关联表
export function apiTeamRelevanceType(data) {
  return request({
    url: `${knowledge}/api/teamRelevanceType`,
    method: 'post',
    data
  });
}

// 删除团队分类关联表
export function apiDeleteTeamRelevanceType(data) {
  return request({
    url: `${knowledge}/api/teamRelevanceType`,
    method: 'delete',
    data
  });
}

// 获取团队分类关联表
export function apiGetTeamRelevanceType(params) {
  return request({
    url: `${knowledge}/api/teamRelevanceType`,
    method: 'get',
    params
  });
}
